<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Исходный файл engine.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li class="current"><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
<h1>engine.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">** $Id: engine.h,v 1.18 2006/08/23 07:17:10 app Exp $</span>
<a name="l00003"></a>00003 <span class="comment">**</span>
<a name="l00004"></a>00004 <span class="comment">** Header file of the Ananas Engine of Ananas</span>
<a name="l00005"></a>00005 <span class="comment">** Engine applications</span>
<a name="l00006"></a>00006 <span class="comment">**</span>
<a name="l00007"></a>00007 <span class="comment">** Created : 20031201</span>
<a name="l00008"></a>00008 <span class="comment">**</span>
<a name="l00009"></a>00009 <span class="comment">** Copyright (C) 2003-2004 Leader InfoTech.  All rights reserved.</span>
<a name="l00010"></a>00010 <span class="comment">**</span>
<a name="l00011"></a>00011 <span class="comment">** This file is part of the Library of the Ananas</span>
<a name="l00012"></a>00012 <span class="comment">** automation accounting system.</span>
<a name="l00013"></a>00013 <span class="comment">**</span>
<a name="l00014"></a>00014 <span class="comment">** This file may be distributed and/or modified under the terms of the</span>
<a name="l00015"></a>00015 <span class="comment">** GNU General Public License version 2 as published by the Free Software</span>
<a name="l00016"></a>00016 <span class="comment">** Foundation and appearing in the file LICENSE.GPL included in the</span>
<a name="l00017"></a>00017 <span class="comment">** packaging of this file.</span>
<a name="l00018"></a>00018 <span class="comment">**</span>
<a name="l00019"></a>00019 <span class="comment">** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE</span>
<a name="l00020"></a>00020 <span class="comment">** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</span>
<a name="l00021"></a>00021 <span class="comment">**</span>
<a name="l00022"></a>00022 <span class="comment">** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru</span>
<a name="l00023"></a>00023 <span class="comment">** See http://www.leaderit.ru/gpl/ for GPL licensing information.</span>
<a name="l00024"></a>00024 <span class="comment">**</span>
<a name="l00025"></a>00025 <span class="comment">** Contact org@leaderit.ru if any conditions of this licensing are</span>
<a name="l00026"></a>00026 <span class="comment">** not clear to you.</span>
<a name="l00027"></a>00027 <span class="comment">**</span>
<a name="l00028"></a>00028 <span class="comment">**********************************************************************/</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="comment">/****************************************************************************</span>
<a name="l00031"></a>00031 <span class="comment">****************************************************************************/</span>
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef ENGINE_H</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define ENGINE_H</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#include &lt;qobject.h&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;qpopupmenu.h&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;qsobjectfactory.h&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;qsproject.h&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;qsinterpreter.h&gt;</span>
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="preprocessor">#include "adatabase.h"</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include "acfg.h"</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "awindowslist.h"</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;qmainwindow.h&gt;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include "adatafield.h"</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include "aobject.h"</span>
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="classaEngine.html" title="Определяет программный интерфейс Runtime системы...">aEngine</a>;
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="classaWidget.html" title="Базовый класс для визуальных объектов. Наследует...">aWidget</a>;
<a name="l00051"></a>00051 
<a name="l00061"></a><a class="code" href="classaObjectsFactory.html">00061</a> <span class="keyword">class </span>ANANAS_EXPORT <a class="code" href="classaObjectsFactory.html" title="Метод aObjectsFactory::create регистрирует С++ классы Ананаса...">aObjectsFactory</a> : <span class="keyword">public</span> QSObjectFactory
<a name="l00062"></a>00062 {
<a name="l00063"></a>00063 <span class="keyword">public</span>:
<a name="l00064"></a>00064         <a class="code" href="classaEngine.html" title="Определяет программный интерфейс Runtime системы...">aEngine</a>   *engine;
<a name="l00065"></a>00065         <a class="code" href="classaDatabase.html" title="Класс для работы с СУБД. Ananas Data Abstraction Layer. Наследует...">aDatabase</a> *db;
<a name="l00066"></a>00066         <a class="code" href="classaObjectsFactory.html" title="Метод aObjectsFactory::create регистрирует С++ классы Ананаса...">aObjectsFactory</a>( <a class="code" href="classaEngine.html" title="Определяет программный интерфейс Runtime системы...">aEngine</a> *e );
<a name="l00067"></a>00067         QObject *create( <span class="keyword">const</span> QString &amp;className,
<a name="l00068"></a>00068                      <span class="keyword">const</span> QSArgumentList &amp;arguments,
<a name="l00069"></a>00069                      QObject *context );
<a name="l00070"></a>00070 };
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 
<a name="l00073"></a>00073 <span class="keyword">class </span><a class="code" href="classaForm.html" title="Определяет программный интерфейс экранных форм...">aForm</a>;
<a name="l00074"></a>00074 
<a name="l00087"></a><a class="code" href="classaEngine.html">00087</a> <span class="keyword">class  </span>ANANAS_EXPORT <a class="code" href="classaEngine.html" title="Определяет программный интерфейс Runtime системы...">aEngine</a> : <span class="keyword">public</span> QObject
<a name="l00088"></a>00088 {
<a name="l00089"></a>00089         Q_OBJECT
<a name="l00090"></a>00090 <span class="keyword">public</span>:
<a name="l00098"></a><a class="code" href="classaEngine.html#0a55e3e10e7831216e51c7dae3558056">00098</a>         <a class="code" href="classaDatabase.html" title="Класс для работы с СУБД. Ananas Data Abstraction Layer. Наследует...">aDatabase</a>       db;
<a name="l00106"></a><a class="code" href="classaEngine.html#e48c52e2d8a714de10eab72ba89414bc">00106</a>         <a class="code" href="classaCfg.html" title="Класс реализует програмный интерфейс доступа...">aCfg</a>*           md;
<a name="l00114"></a><a class="code" href="classaEngine.html#d5ed39c2ac22ecdccd80d25449931834">00114</a>         QWidget*        ws;
<a name="l00122"></a><a class="code" href="classaEngine.html#27cd41ba3b74999dbaa392766efaeddd">00122</a>         <a class="code" href="classaWindowsList.html" title="Класс определяет интерфейс управления списком...">aWindowsList</a>*   wl;
<a name="l00130"></a><a class="code" href="classaEngine.html#b7b6e38ffd1d2976493bbfd0da0fb95f">00130</a>         QSInterpreter*  code;
<a name="l00138"></a><a class="code" href="classaEngine.html#c23364af22335bcc66751f5111da42b1">00138</a>         QSProject       project;
<a name="l00146"></a><a class="code" href="classaEngine.html#98bb437f215b0eaffc146284f104039a">00146</a>         <span class="keywordtype">int</span>             next_obj_id;
<a name="l00147"></a>00147         
<a name="l00148"></a>00148         <a class="code" href="classaEngine.html" title="Определяет программный интерфейс Runtime системы...">aEngine</a>();
<a name="l00149"></a>00149         <span class="keyword">virtual</span> ~<a class="code" href="classaEngine.html" title="Определяет программный интерфейс Runtime системы...">aEngine</a>();
<a name="l00150"></a>00150         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> init( <span class="keyword">const</span> QString &amp;rcfile );
<a name="l00151"></a>00151         <span class="keyword">virtual</span> <span class="keywordtype">void</span> done();
<a name="l00152"></a>00152         <span class="keywordtype">void</span> openEmbedCatalogueEditor(<span class="keywordtype">int</span> oid, QWidget *parent=NULL, <span class="keyword">const</span> <span class="keywordtype">bool</span> toSelect=<span class="keyword">true</span>);
<a name="l00153"></a>00153 
<a name="l00154"></a>00154         QString sourcePreprocessor( <span class="keyword">const</span> QString &amp;src );
<a name="l00155"></a>00155 
<a name="l00156"></a>00156         <span class="keywordtype">void</span> timerEvent(QTimerEvent *e);
<a name="l00157"></a>00157         <span class="keywordtype">int</span> on_systemstart();
<a name="l00158"></a>00158         <span class="keywordtype">int</span> on_systemstop();
<a name="l00159"></a>00159         <a class="code" href="classaForm.html" title="Определяет программный интерфейс экранных форм...">aForm</a> *openForm( <span class="keywordtype">int</span> oid, <span class="keywordtype">int</span> fid = 0 , <span class="keywordtype">int</span> defaultfor = 1,
<a name="l00160"></a>00160                 <span class="keywordtype">int</span> mode = 0, ANANAS_UID <span class="keywordtype">id</span> = 0, <a class="code" href="classaWidget.html" title="Базовый класс для визуальных объектов. Наследует...">aWidget</a>* caller = 0 );
<a name="l00161"></a>00161 
<a name="l00162"></a>00162 <span class="keyword">public</span> slots:
<a name="l00163"></a>00163         QString cfgname();
<a name="l00164"></a>00164         QString Time();
<a name="l00165"></a>00165         QString Date();
<a name="l00166"></a>00166         <span class="keywordtype">void</span> Exit();
<a name="l00167"></a>00167         <span class="keywordtype">void</span> Message(<span class="keywordtype">int</span> n, <span class="keyword">const</span> QString &amp;msg );
<a name="l00168"></a>00168         <span class="keywordtype">void</span> StatusMessage( <span class="keyword">const</span> QString &amp;msg );
<a name="l00169"></a>00169         <span class="keywordtype">void</span> settimer(<span class="keywordtype">int</span> sec, QString proc);
<a name="l00170"></a>00170         <a class="code" href="classaForm.html" title="Определяет программный интерфейс экранных форм...">aForm</a> * OpenForm(QString fname, <span class="keywordtype">int</span> mode=0, <a class="code" href="classaObject.html" title="Базовый класс для невизуальных классов (моделей...">aObject</a> * selecter=0);<span class="comment">//Q_ULLONG ido=0);</span>
<a name="l00171"></a>00171         QVariant value( <span class="keyword">const</span> QString &amp;name );
<a name="l00172"></a>00172         <span class="keywordtype">void</span> setValue( <span class="keyword">const</span> QString &amp;name, QVariant value = QVariant::Invalid );
<a name="l00173"></a>00173 
<a name="l00174"></a>00174         <span class="keywordtype">void</span> on_MenuBar( <span class="keywordtype">int</span> <span class="keywordtype">id</span> );
<a name="l00175"></a>00175         <span class="keywordtype">void</span> execAction( aCfgItem &amp;act, QObject *context = 0 );
<a name="l00176"></a>00176 
<a name="l00177"></a>00177         <a class="code" href="classaDataField.html" title="Класс определяет программный интерфейс для...">aDataField</a> *enterValue( <span class="keyword">const</span> QString &amp;FieldType, <span class="keyword">const</span> QString &amp;title = <span class="stringliteral">""</span> );
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 <span class="keyword">private</span> slots:
<a name="l00180"></a>00180         <span class="keywordtype">void</span> error (    <span class="keyword">const</span> QString &amp; message, QObject * context,
<a name="l00181"></a>00181                         <span class="keyword">const</span> QString &amp; scriptName, <span class="keywordtype">int</span> lineNumber );
<a name="l00182"></a>00182         <span class="keywordtype">void</span> on_event( <span class="keyword">const</span> QString &amp;data );
<a name="l00183"></a>00183 signals:
<a name="l00184"></a>00184         <span class="keywordtype">void</span> statusMessage( <span class="keyword">const</span> QString &amp;msg );
<a name="l00185"></a>00185         <span class="keywordtype">void</span> event( <span class="keyword">const</span> QString &amp;source, <span class="keyword">const</span> QString &amp;data );
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 <span class="keyword">private</span>:
<a name="l00188"></a>00188         QString pr_timer;
<a name="l00189"></a>00189         QString mGlobal;
<a name="l00190"></a>00190         QDict &lt;QVariant&gt; values;
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 };
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 <span class="preprocessor">#endif // ENGINE_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:14 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
